package com.sztz.mapstruct.J更新实体;

import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.factory.Mappers;

/**
 * CarMapper
 *
 * @author yyf
 * @email yeyafei@hotmail.com
 */
@Mapper
public interface CarMapper {

    CarMapper INSTANCE = Mappers.getMapper(CarMapper.class);

    /**
     * 更新实体 @MappingTarget
     *
     * @param carDto
     * @param car
     *
     */
    void updateCar(CarDTO carDto, @MappingTarget Car car);
}
